package my.graduation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: RavenLyn
 * @Date: 2024-11-27
 *
 * 患者信息表
 */

@Data
@TableName("patient") //映射
public class Patient implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
//    @TableField("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;

    /**
     * 诊疗卡号
     */
    @TableField("medical_card")
    private String medicalCard;

    /**
     * 性别
     */
    @TableField("gender")
    private Integer gender;

    /**
     * 出生日期
     */
    @TableField("birth")
    private Date birth;
}
